#include <iostream>

using std::cout;
using std::endl;

int main()
{
    float a = 0.1;
    float b = 1.0;
    float sum = a+a+a+a+a+a+a+a+a+a;

    cout << a << "+" << b << "=" << sum << endl;
    cout << "sizeof(int) = " << sizeof(int) << endl;
    cout << "sizeof(short) = " << sizeof(short) << endl;
    cout << "sizeof(long) = " << sizeof(long) << endl;
    cout << "sizeof(float) = " << sizeof(float) << endl;
    cout << "sizeof(double) = " << sizeof(double) << endl;
    cout << "sizeof(char) = " << sizeof(char) << endl;
    cout << "sizeof(unsigned char) = " << sizeof(unsigned char) << endl;

    char c = 'C';
    int i = c;
    printf("Convert '%c' to integer: %d\n", c, i);

    cout << "sum: " << sum << endl;
    printf("sum = %.9f\n", sum);
    cout << "sum equals to 1?" << (sum == 1.0) << endl;

return 0;
}